package com.css.fxfzypg.modules.baseData.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * data_geological_disasters
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GeologicalEntity implements Serializable {

    private Integer dgdId;
    @Excel(name = "经度")
    private Float dgdReslongitude;
    @Excel(name = "纬度")
    private Float dgdReslatitude;
    @Excel(name = "名称")
    private String dgdName;
    @Excel(name = "灾害类型")
    private String dgdDisasterType;
    @Excel(name = "影响人口数量")
    private Integer dgdImpactPeoNum;
    @Excel(name = "影响房屋数量")
    private Integer dgdImpactHouseNum;
    @Excel(name = "稳定性")
    private String dgdStability;
    @Excel(name = "危险等级")
    private String dgdDangerLevel;

    private Date dgdCreatetime;

    private Date dgdUpdatetime;

    private String dgdIsdelete;

    private String province;//省
    private String city;//市
    private String county;//区县
    private String fileUuid;//文件UUID
    private String geomText;//空间数据解析字符串
    private String id;//主键ID

    private static final long serialVersionUID = 1L;

    public Integer getDgdId() {
        return dgdId;
    }

    public void setDgdId(Integer dgdId) {
        this.dgdId = dgdId;
    }

    public Float getDgdReslongitude() {
        return dgdReslongitude;
    }

    public void setDgdReslongitude(Float dgdReslongitude) {
        this.dgdReslongitude = dgdReslongitude;
    }

    public Float getDgdReslatitude() {
        return dgdReslatitude;
    }

    public void setDgdReslatitude(Float dgdReslatitude) {
        this.dgdReslatitude = dgdReslatitude;
    }

    public String getDgdName() {
        return dgdName;
    }

    public void setDgdName(String dgdName) {
        this.dgdName = dgdName;
    }

    public String getDgdDisasterType() {
        return dgdDisasterType;
    }

    public void setDgdDisasterType(String dgdDisasterType) {
        this.dgdDisasterType = dgdDisasterType;
    }

    public Integer getDgdImpactPeoNum() {
        return dgdImpactPeoNum;
    }

    public void setDgdImpactPeoNum(Integer dgdImpactPeoNum) {
        this.dgdImpactPeoNum = dgdImpactPeoNum;
    }

    public Integer getDgdImpactHouseNum() {
        return dgdImpactHouseNum;
    }

    public void setDgdImpactHouseNum(Integer dgdImpactHouseNum) {
        this.dgdImpactHouseNum = dgdImpactHouseNum;
    }

    public String getDgdStability() {
        return dgdStability;
    }

    public void setDgdStability(String dgdStability) {
        this.dgdStability = dgdStability;
    }

    public String getDgdDangerLevel() {
        return dgdDangerLevel;
    }

    public void setDgdDangerLevel(String dgdDangerLevel) {
        this.dgdDangerLevel = dgdDangerLevel;
    }

    public Date getDgdCreatetime() {
        return dgdCreatetime;
    }

    public void setDgdCreatetime(Date dgdCreatetime) {
        this.dgdCreatetime = dgdCreatetime;
    }

    public Date getDgdUpdatetime() {
        return dgdUpdatetime;
    }

    public void setDgdUpdatetime(Date dgdUpdatetime) {
        this.dgdUpdatetime = dgdUpdatetime;
    }

    public String getDgdIsdelete() {
        return dgdIsdelete;
    }

    public void setDgdIsdelete(String dgdIsdelete) {
        this.dgdIsdelete = dgdIsdelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GeologicalEntity other = (GeologicalEntity) that;
        return (this.getDgdId() == null ? other.getDgdId() == null : this.getDgdId().equals(other.getDgdId()))
            && (this.getDgdReslongitude() == null ? other.getDgdReslongitude() == null : this.getDgdReslongitude().equals(other.getDgdReslongitude()))
            && (this.getDgdReslatitude() == null ? other.getDgdReslatitude() == null : this.getDgdReslatitude().equals(other.getDgdReslatitude()))
            && (this.getDgdName() == null ? other.getDgdName() == null : this.getDgdName().equals(other.getDgdName()))
            && (this.getDgdDisasterType() == null ? other.getDgdDisasterType() == null : this.getDgdDisasterType().equals(other.getDgdDisasterType()))
            && (this.getDgdImpactPeoNum() == null ? other.getDgdImpactPeoNum() == null : this.getDgdImpactPeoNum().equals(other.getDgdImpactPeoNum()))
            && (this.getDgdImpactHouseNum() == null ? other.getDgdImpactHouseNum() == null : this.getDgdImpactHouseNum().equals(other.getDgdImpactHouseNum()))
            && (this.getDgdStability() == null ? other.getDgdStability() == null : this.getDgdStability().equals(other.getDgdStability()))
            && (this.getDgdDangerLevel() == null ? other.getDgdDangerLevel() == null : this.getDgdDangerLevel().equals(other.getDgdDangerLevel()))
            && (this.getDgdCreatetime() == null ? other.getDgdCreatetime() == null : this.getDgdCreatetime().equals(other.getDgdCreatetime()))
            && (this.getDgdUpdatetime() == null ? other.getDgdUpdatetime() == null : this.getDgdUpdatetime().equals(other.getDgdUpdatetime()))
            && (this.getDgdIsdelete() == null ? other.getDgdIsdelete() == null : this.getDgdIsdelete().equals(other.getDgdIsdelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDgdId() == null) ? 0 : getDgdId().hashCode());
        result = prime * result + ((getDgdReslongitude() == null) ? 0 : getDgdReslongitude().hashCode());
        result = prime * result + ((getDgdReslatitude() == null) ? 0 : getDgdReslatitude().hashCode());
        result = prime * result + ((getDgdName() == null) ? 0 : getDgdName().hashCode());
        result = prime * result + ((getDgdDisasterType() == null) ? 0 : getDgdDisasterType().hashCode());
        result = prime * result + ((getDgdImpactPeoNum() == null) ? 0 : getDgdImpactPeoNum().hashCode());
        result = prime * result + ((getDgdImpactHouseNum() == null) ? 0 : getDgdImpactHouseNum().hashCode());
        result = prime * result + ((getDgdStability() == null) ? 0 : getDgdStability().hashCode());
        result = prime * result + ((getDgdDangerLevel() == null) ? 0 : getDgdDangerLevel().hashCode());
        result = prime * result + ((getDgdCreatetime() == null) ? 0 : getDgdCreatetime().hashCode());
        result = prime * result + ((getDgdUpdatetime() == null) ? 0 : getDgdUpdatetime().hashCode());
        result = prime * result + ((getDgdIsdelete() == null) ? 0 : getDgdIsdelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dgdId=").append(dgdId);
        sb.append(", dgdReslongitude=").append(dgdReslongitude);
        sb.append(", dgdReslatitude=").append(dgdReslatitude);
        sb.append(", dgdName=").append(dgdName);
        sb.append(", dgdDisasterType=").append(dgdDisasterType);
        sb.append(", dgdImpactPeoNum=").append(dgdImpactPeoNum);
        sb.append(", dgdImpactHouseNum=").append(dgdImpactHouseNum);
        sb.append(", dgdStability=").append(dgdStability);
        sb.append(", dgdDangerLevel=").append(dgdDangerLevel);
        sb.append(", dgdCreatetime=").append(dgdCreatetime);
        sb.append(", dgdUpdatetime=").append(dgdUpdatetime);
        sb.append(", dgdIsdelete=").append(dgdIsdelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}